package com.atguigu.team.domain;

public class Printer implements Equipment{
    private String name;
    private String type;
    public String getDescription(){
        return name+"("+type+")";
    }
    //set方法
    public void setName(String name){
        this.name=name;
    }
    public void setType(String type){
        this.type=type;
    }
    //get方法
    public String getName(){
        return name;
    }
    public String getType(){
        return type;
    }
    //构造器
    public Printer(){

    }
    public Printer(String name,String type){
        this.type=type;
        this.name=name;
    }
}
